package com.nothing.view;

import java.util.ResourceBundle;

public enum FxmlView {

	USER {
		@Override
		public String getTitle() {
			return getStringFromResourceBundle("user.title");
		}

		@Override
		public String getFxmlFile() {
			return "/fxml/user.fxml";
		}
	},
	TAKE {
		@Override
		public String getTitle() {
			return getStringFromResourceBundle("take.title");
		}

		@Override
		public String getFxmlFile() {
			return "/fxml/takePicture.fxml";
		}
	},
	LOGIN {

		@Override
		public String getTitle() {
			return getStringFromResourceBundle("login.title");
		}

		@Override
		public String getFxmlFile() {
			return "/fxml/login.fxml";
		}
	},
	FACE {

		@Override
		public String getTitle() {
			return getStringFromResourceBundle("face.title");
		}

		@Override
		public String getFxmlFile() {
			return "/fxml/face.fxml";
		}
	},
	CHECK {

		@Override
		public String getTitle() {
			return getStringFromResourceBundle("check.title");
		}

		@Override
		public String getFxmlFile() {
			return "/fxml/checkFace.fxml";
		}
	},
	SHOW {

		@Override
		public String getTitle() {
			return getStringFromResourceBundle("showCheck.title");
		}

		@Override
		public String getFxmlFile() {
			return "/fxml/showCheckPicture.fxml";
		}
	},
	IPCAM {

		@Override
		public String getTitle() {
			return getStringFromResourceBundle("cam.title");
		}

		@Override
		public String getFxmlFile() {
			return "/fxml/webCamPreview.fxml";
		}
	},
	CVCAM {

		@Override
		public String getTitle() {
			return getStringFromResourceBundle("cam.title");
		}

		@Override
		public String getFxmlFile() {
			return "/fxml/openCVCamPreview.fxml";
		}
	},
	ANIMA {

		@Override
		public String getTitle() {
			return getStringFromResourceBundle("anima.title");
		}

		@Override
		public String getFxmlFile() {
			return "/fxml/anima.fxml";
		}
	},
	DRAW {

		@Override
		public String getTitle() {
			return getStringFromResourceBundle("drwa.title");
		}

		@Override
		public String getFxmlFile() {
			return "/fxml/draw.fxml";
		}
	};

	public abstract String getTitle(); 
	public abstract String getFxmlFile();

	String getStringFromResourceBundle(String key) {
		return ResourceBundle.getBundle("bundle").getString(key);
	}

}
